def test02():
    excel ="products.0.quantity"
    # excel ="products.0"
    # excel ="couponId"
    excel_s = excel.split(".")
    excel_int=[]
    for a in excel_s:
        try:
            b = int(a)
        except:
            c = a
        else:
            c = b
        excel_int.append(c)
    return excel_int
test02()